package com.yonyougov.devops.cruxcisupport.server.vo;

import com.yonyougov.devops.cruxcisupport.server.ServerEntity;
import com.yonyougov.devops.cruxcisupport.user.UserEntity;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class ServerSearchVo extends ServerEntity {

    /**
     * 申请人
     */
    private UserEntity createUser;


    public ServerSearchVo(){

    }

    public ServerSearchVo(ServerEntity serverEntity, UserEntity userEntity){
        BeanUtils.copyProperties(serverEntity,this);
        this.createUser = userEntity;
    }


}
